package com.zhengxiang.onlinexamination.controller;

import com.zhengxiang.onlinexamination.base.AjaxResult;
import com.zhengxiang.onlinexamination.entity.vo.QuAnswerVo;
import com.zhengxiang.onlinexamination.service.QuAnswerService;
import org.springframework.web.bind.annotation.*;

import javax.annotation.Resource;

/**
 * 题目答案(ZQuAnswer)表控制层
 *
 * @author
 * @since 2023-03-09 17:30:03
 */
@RestController
@RequestMapping("quAnswer")
public class QuAnswerController {
    /**
     * 服务对象
     */
    @Resource
    private QuAnswerService quAnswerService;


    /**
     * 打分
     *
     * @param qat
     * @return
     */
    @RequestMapping("/calculationScore")
    public AjaxResult calculationScore(@RequestBody QuAnswerVo qat) {
        quAnswerService.calculationScore(qat);
        return AjaxResult.success();
    }

    /**
     * 打分结果
     *
     * @return
     */
    @RequestMapping("/calculationScoreResult")
    public AjaxResult calculationScoreResult() {
        return AjaxResult.success();
    }
}

